﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>人脸情绪数据分析</title>
    <!--<script type="text/javascript">
        var start = function () {
            var inc = document.getElementById('incomming');
            var wsImpl = window.WebSocket || window.MozWebSocket;
            var form = document.getElementById('sendForm');
            var input = document.getElementById('sendText');

            inc.innerHTML += "connecting to server ..<br/>";

            // create a new websocket and connect
            window.ws = new wsImpl('ws://localhost:7181/');

            // when data is comming from the server, this metod is called
            ws.onmessage = function (evt) {
                inc.innerHTML += evt.data + '<br/>';
            };

            // when the connection is established, this method is called
            ws.onopen = function () {
                inc.innerHTML += '.. connection open<br/>';
            };

            // when the connection is closed, this method is called
            ws.onclose = function () {
                inc.innerHTML += '.. connection closed<br/>';
            }

            form.addEventListener('submit', function (e) {
                e.preventDefault();
                var val = input.value;
                ws.send(val);
                input.value = "";
            });

        }
        window.onload = start;
    </script>-->
    <script src="Resources/jquery-1.11.0.min.js"></script>
    
</head>
<body>
    <form id="sendForm">
        <input id="sendText" placeholder="Text to send" />
        <div class="circleChart" id="circle1"></div>
        <button onclick="window.external.Test('132')">调用c#函数</button>
    </form>
    <pre id="incomming"></pre>
    <!--<script src="Resources/circleChart.min.js"></script>-->
    <script>
        //window.external.Test('javascript访问C#代码')
        //$("#circle1").circleChart({
        //    size: 300
        //});
        function Messageaa(message) {
            alert(message);
        }
    </script>
</body>
</html>